<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>钟表</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .clock {
            width: 500px;
            height: 500px;
            background-color: #fff;
            margin: 0 auto;
            margin-top: 100px;
            border-radius: 50%;
            background-image: url(./img/clock.jpg);
            /* border: 10px solid black; */
            background-size: cover;
            position: relative;
        }
        .clock > div {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }
        .point {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            border: 8px solid black;
            background-color: #fff;
            z-index: 10;
        }
        .hour-wrapper {
            width: 70%;
            height: 70%;
            animation: run 4320 0s steps(12);
        }
        .hour {
            height: 51%;
            width: 8px;
            background-color: rgb(189, 2, 189);
            margin: 0 auto;
            border-radius: 4px;
        }
        .min-wrapper {
            width: 80%;
            height: 80%;
            animation: run 3600s steps(60) infinite;
        }
        .min {
            height: 51%;
            width: 5px;
            background-color: #ff6700;
            margin: 0 auto;
            border-radius: 2.5px;
        }
        .sec-wrapper {
            width: 90%;
            height: 90%;
            animation: run 60s steps(60) infinite;
        }
        .sec {
            height: 51%;
            width: 3px;
            background-color: skyblue;
            margin: 0 auto;
            border-radius: 1.5px;
        }
        /* 旋转的关键帧 */
        @keyframes run {
            form {
                transform: rotateZ(0);
            }
            to {
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="clock">
        <!-- <img src="./img/clock.jpg" alt=""> -->
        <div class="point"></div>
        <!-- 时针 -->
        <div class="hour-wrapper">
            <div class="hour"></div>
        </div>
        <!-- 分针 -->
        <div class="min-wrapper">
            <div class="min"></div>
        </div>
        <div class="sec-wrapper">
            <div class="sec"></div>
        </div>
    </div>
</body>
</html>